-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove additional zero byte when writing pub der #1258
remove additional zero byte when writing pub der #1258
Conversation
Remove `- 1` for setting location of output buffer, which added a leading zero which cause failure in ASN1 parsing. Fixes Mbed-TLS#1257
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it, the key_app does not print an error after the changes.
This is a minor bug but should still be fixed in the maintenance branches assuming it's broken there too. Fortunately the fix is easy to backport too. |
retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Needs a ChangeLog entry. Can be fixed in gatekeeping. |
@sbutcher-arm Do we add ChangeLog entries for changes in the example applications? |
…hmac-document-2.28 Backport 2.28: Document that MBEDTLS_PSA_HMAC_DRBG_MD_TYPE does not force HMAC
Description
The key_app writer writes wrong public key, in der format.
The reason is a leading zero byte, which is not a valid ASN1 tag
Fixes #1257
Status
READY
Requires Backporting
NO
This is only in a sample application
Steps to test or reproduce
key_app_writer
to write a public key in der format